import {getMyArray} from '@/api'

const state = {
    myArrays:[]
}

const mutations = {
   MYARRAYS(context, data){
       context.myArrays = data
   }
}

const actions = {
  async myArrays({commit}, params){
      let {pageIndex, pageSize} = params
      let result = await getMyArray(pageIndex, pageSize)
      commit('MYARRAYS', result.data)
  }
}

const getters = {}

export default {
    state,
    mutations,
    actions,
    getters
}